<!-- edu_15_1_2.html --><!doctype html><html lang="zh-Hans-CN"><head>	<meta charset="UTF-8">	<title> JavaScript中地动态指定</title>	<style>#inp{width:100px;height:40px;color:red;}	</style>	<script>		function clickHandler() {		    alert("代码触发事件，即将提交表单！");			return true;  		}	</script> </head> <body>	<h3>JavaScript代码中动态指定</h3>	<hr>	<form name="myform" method="post" action="" >		<input id="inp" type="button" name="mybutton" value="提交" >	</form>    <script>       	document.getElementById('inp').onclick=function(){       	    return clickHandler();       	}        myform.mybutton.onclick(); 	</script>    <hr>	<p> <script>document.write(document.lastModified);</script> <a href="index.html">返回本章目录</a></p></body></html>